import request from '@/utils/request'

// 查询WS子数据列表
export function listChatWsData(query) {
  return request({
    url: '/business/chatWsData/list',
    method: 'get',
    params: query
  })
}

// 查询WS子数据详细
export function getChatWsData(id) {
  return request({
    url: '/business/chatWsData/' + id,
    method: 'get'
  })
}

// 新增WS子数据
export function addChatWsData(data) {
  return request({
    url: '/business/chatWsData',
    method: 'post',
    data: data
  })
}

// 修改WS子数据
export function updateChatWsData(data) {
  return request({
    url: '/business/chatWsData',
    method: 'put',
    data: data
  })
}

// 删除WS子数据
export function delChatWsData(id) {
  return request({
    url: '/business/chatWsData/' + id,
    method: 'delete'
  })
}
